import collections
arr = [2,-11,24,15,26,-31,-48,-49,22,37,-36]

end_ls = {}
for i, v in enumerate(sorted(set(arr)), 1):
    end_ls[v] = i

print([end_ls[v] for v in arr])
# for i in range(len(a)):
#     for v in range(len(arr)):
#         if a[i] == arr[v]:
#             arr[v] = i+1
# for i in range(len(arr)):
#     arr[i] = a.index(arr[i]) + 1
# print(arr)